package com.guigu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guigu.pojo.FrontUser;
import com.guigu.pojo.SysUser;
import com.guigu.vo.Pojo;
import com.guigu.vo.Vo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ZhucheMapper extends BaseMapper<FrontUser> {
    //账号密码登录
    Integer selectByAccount(FrontUser frontUser);
    //后台登录
    Integer selectByAccount1(SysUser sysUser);
    //根据id查询后台用户信息
    SysUser selectById(int uid);
    //根据id和密码验证是否有用户
    Integer selectById1(FrontUser frontUser);
    //根据id修改密码
    Integer updatePassword(FrontUser frontUser);
    //查询所有用户
    List<FrontUser> selectAll(@Param("vo") Vo vo, Integer pageNum, Integer pageSize);
    //根据userId修改bus
    int updateById9(FrontUser frontUser);
    //根据userId修改ven
    int updateById99(FrontUser frontUser);



    //liyongchao
    //根据id查询前台用户信息
    FrontUser One(int uid);
}
